/*
  百度ios、android、dart层事件常量
 */
class BaiduSpeechConstant {
  /*
  * IOS事件回调
  * */
  //识别工作开始，开始采集及处理数据
  static const int EVoiceRecognitionClientWorkStatusStartWorkIng = 0;

  //检测到用户开始说话
  static const int EVoiceRecognitionClientWorkStatusStart = 1;

  //本地声音采集结束结束，等待识别结果返回并结束录音
  static const int EVoiceRecognitionClientWorkStatusEnd = 2;

  //录音数据回调
  static const int EVoiceRecognitionClientWorkStatusNewRecordData = 3;

  //连续上屏
  static const int EVoiceRecognitionClientWorkStatusFlushData = 4;

  //语音识别功能完成，服务器返回正确结果
  static const int EVoiceRecognitionClientWorkStatusFinish = 5;

  //当前音量回调
  static const int EVoiceRecognitionClientWorkStatusMeterLevel = 6;

  //用户取消
  static const int EVoiceRecognitionClientWorkStatusCancel = 7;

  //发生错误
  static const int EVoiceRecognitionClientWorkStatusError = 8;

  //离线引擎加载完成
  static const int EVoiceRecognitionClientWorkStatusLoaded = 9;

  //离线引擎卸载完成
  static const int EVoiceRecognitionClientWorkStatusUnLoaded = 10;

  //CHUNK: 识别结果中的第三方数据
  static const int EVoiceRecognitionClientWorkStatusChunkThirdData = 11;

  //CHUNK: 识别结果中的语义结果
  static const int EVoiceRecognitionClientWorkStatusChunkNlu = 12;

  //CHUNK: 识别过程结束
  static const int EVoiceRecognitionClientWorkStatusChunkEnd = 13;

  //Feedback: 识别过程反馈的打点数据
  static const int EVoiceRecognitionClientWorkStatusFeedback = 14;

  //录音机关闭，页面跳转需检测此时间，规避状态条 (iOS)
  static const int EVoiceRecognitionClientWorkStatusRecorderEnd = 15;

  //长语音结束状态
  static const int EVoiceRecognitionClientWorkStatusLongSpeechEnd = 16;

  /*
  * IOS事件回调
  * */

  /*
  * Android事件回调
  * */

  //引擎准备就绪，可以开始说话
  static const String CALLBACK_EVENT_ASR_READY = 'asr.ready';

  //检测到说话开始
  static const String CALLBACK_EVENT_ASR_BEGIN = 'asr.begin';

  //检测到说话结束
  static const String CALLBACK_EVENT_ASR_END = 'asr.end';

  //识别结果
  static const String CALLBACK_EVENT_ASR_PARTIAL = 'asr.partial';

  //识别结束（可能含有错误信息） 。最终识别的文字结果在ASR_PARTIAL事件中
  static const String CALLBACK_EVENT_ASR_FINISH = 'asr.finish';

  //识别结束，资源释放
  static const String CALLBACK_EVENT_ASR_EXIT = 'asr.exit';

  //当前音量回调。必须输入ACCEPT_AUDIO_VOLUME参数激活
  static const String CALLBACK_EVENT_ASR_VOLUME = 'asr.volume';

  //离线模型加载成功回调
  static const String CALLBACK_EVENT_ASR_LOADED = 'asr.loaded';

  //离线模型卸载成功回调
  static const String CALLBACK_EVENT_ASR_UNLOADED = 'asr.unloaded';

  /*
  * Android事件回调
  * */

  /*
  * flutter层事件状态
   */

  //引擎准备中
  static const String ASR_PREPARING = 'asr.preparing';

  //引擎准备就绪
  static const String ASR_READY = 'asr.ready';

  //检测到开始说话
  static const String ASR_BEGIN = 'asr.begin';

  //说话结束
  static const String ASR_END = 'asr.end';

  //识别结束
  static const String ASR_FINISH = 'asr.finish';
  /*
  * flutter层事件状态
   */
}
